package com.zzx.service;

import com.zzx.common.domain.CommonResult;
import com.zzx.pojo.UserOrder;

/**
 * @version 1.0
 * @Author ZZX
 * @Date 2023/10/3 18:16
 */
public interface IOrderService
{
    CommonResult getOnesOrderList(Integer userId, String orderState);

    CommonResult getOrderById(Integer orderId);

    CommonResult makeOrder(UserOrder userOrder);

    CommonResult cancelOrder(UserOrder userOrder);

    CommonResult payOrder(UserOrder userOrder);

    CommonResult getOnesExistOrder(Integer userId, Integer goodsId);
}
